package com.cc.demo.component.retry.local;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/local")
public class LocalRetryController {

    private final LocalRetryService localRetryService;

    @RequestMapping("/retry")
    public String localRetry(String params) {
        return localRetryService.localRetry(params);
    }
}
